<?php /* Smarty version Smarty-3.1.8, created on 2012-06-14 06:46:43
         compiled from "../includes/interface/templates\personneAfficher.tpl" */ ?>
<?php /*%%SmartyHeaderCode:144024fd988d37c6619-52709047%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '55d040a560c0762e0f5a6bb9dd2c0e15f1cc5ee6' => 
    array (
      0 => '../includes/interface/templates\\personneAfficher.tpl',
      1 => 1339570373,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '144024fd988d37c6619-52709047',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'personne' => 0,
    'adresses' => 0,
    'adresse' => 0,
    'localites' => 0,
    'localite' => 0,
    'contrats' => 0,
    'contrat' => 0,
    'rapports' => 0,
    'historiques' => 0,
    'historique' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_4fd988d3c01cd9_28130457',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4fd988d3c01cd9_28130457')) {function content_4fd988d3c01cd9_28130457($_smarty_tpl) {?><section id="content">
    <h2 class="article"><?php echo $_smarty_tpl->tpl_vars['personne']->value->getPrenom();?>
 <?php echo $_smarty_tpl->tpl_vars['personne']->value->getNom();?>
</h2>
    <div class="liste_deroulante article">
    <p class="entete_liste"><?php echo $_smarty_tpl->getConfigVariable('INFORMATIONS_GENERAL');?>
</p>
    <table class="contenu_liste">
        <tr>
            <td class="description"><?php echo $_smarty_tpl->getConfigVariable('ID');?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['personne']->value->getId();?>
</td>
        </tr>
        <tr>
            <td><?php echo $_smarty_tpl->getConfigVariable('PRENOM');?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['personne']->value->getPrenom();?>
</td>
        </tr>
        <tr>
            <td><?php echo $_smarty_tpl->getConfigVariable('NOM');?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['personne']->value->getNom();?>
</td>
        </tr>
        <tr>
            <td><?php echo $_smarty_tpl->getConfigVariable('TELEPHONE');?>
 </td>
            <td><?php echo $_smarty_tpl->tpl_vars['personne']->value->getTelephone();?>
</td>
        </tr>
        <tr>
            <td><?php echo $_smarty_tpl->getConfigVariable('TELEPHONE2');?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['personne']->value->getTelephonesecond();?>
</td>
        </tr>
        <tr>
            <td><?php echo $_smarty_tpl->getConfigVariable('EMAIL');?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['personne']->value->getEmail();?>
</td>
        </tr>
        <tr>
            <td><?php echo $_smarty_tpl->getConfigVariable('ATTEST_FISCALE');?>
</td>
            <td><?php if ($_smarty_tpl->tpl_vars['personne']->value->getAttestationFiscale()==1){?><?php echo $_smarty_tpl->getConfigVariable('OUI');?>
<?php }else{ ?><?php echo $_smarty_tpl->getConfigVariable('NON');?>
<?php }?></td>
        </tr>
        <tr>
            <td><?php echo $_smarty_tpl->getConfigVariable('INSCR_ONLINE');?>
</td>
            <td><?php if ($_smarty_tpl->tpl_vars['personne']->value->getInscriptionOnline()==1){?><?php echo $_smarty_tpl->getConfigVariable('OUI');?>
<?php }else{ ?><?php echo $_smarty_tpl->getConfigVariable('NON');?>
<?php }?></td>
        </tr>
        <?php  $_smarty_tpl->tpl_vars['adresse'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['adresse']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['adresses']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['adresse']->key => $_smarty_tpl->tpl_vars['adresse']->value){
$_smarty_tpl->tpl_vars['adresse']->_loop = true;
?>
        <tr>
            <td><?php echo $_smarty_tpl->getConfigVariable('TYPE_HABITATION');?>
</td>
            <td></td>
        </tr>
        <tr>
            <td><?php echo $_smarty_tpl->getConfigVariable('ADRESSE1');?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['adresse']->value->getLigne1();?>
</td>
        </tr>
        <tr>
            <td><?php echo $_smarty_tpl->getConfigVariable('ADRESSE2');?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['adresse']->value->getLigne2();?>
</td>
        </tr>
        <tr>
            <td><?php echo $_smarty_tpl->getConfigVariable('ADRESSE3');?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['adresse']->value->getLigne3();?>
</td>
        </tr>
        <tr>
            <td><?php echo $_smarty_tpl->getConfigVariable('NPA');?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['adresse']->value->getLocalite_npa();?>
</td>
        </tr>
        <?php } ?>
        <?php  $_smarty_tpl->tpl_vars['localite'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['localite']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['localites']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['localite']->key => $_smarty_tpl->tpl_vars['localite']->value){
$_smarty_tpl->tpl_vars['localite']->_loop = true;
?>
        <tr>
            <td><?php echo $_smarty_tpl->getConfigVariable('LOCALITE');?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['localite']->value->getNom();?>
</td>
        </tr>
        <tr>
            <td><?php echo $_smarty_tpl->getConfigVariable('REGION');?>
 </td>
            <td><?php echo $_smarty_tpl->tpl_vars['localite']->value->getRegion_nom();?>
</td>
        </tr>
        <tr>
            <td><?php echo $_smarty_tpl->getConfigVariable('PAYS');?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['localite']->value->getPays_nom();?>
</td>
        </tr>
        <?php } ?>
        <tr>
            <td><?php echo $_smarty_tpl->getConfigVariable('REMARQUES');?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['personne']->value->getRemarque();?>
</td>
        </tr>
    </table>
        <p class="entete_liste">Contrats</p>
        <table class="contenu_liste">
            <tr>
                <th>Date</th>
                <th>Animal</th>
            </tr>
            <?php  $_smarty_tpl->tpl_vars['contrat'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['contrat']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['contrats']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['contrat']->key => $_smarty_tpl->tpl_vars['contrat']->value){
$_smarty_tpl->tpl_vars['contrat']->_loop = true;
?>
            <tr>
                <td><?php echo $_smarty_tpl->tpl_vars['contrat']->value->getDate();?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['contrat']->value->getAnimal_id();?>
</td>  
            </tr>  
            <?php } ?>
        </table>
        <p class="entete_liste">Rapports</p>
        <table class="contenu_liste">
            <tr>
                <th>Date</th>
                <th>Titre</th>
                <th>Animal</th>
            </tr>
            <?php  $_smarty_tpl->tpl_vars['rapport'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['rapport']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['rapports']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['rapport']->key => $_smarty_tpl->tpl_vars['rapport']->value){
$_smarty_tpl->tpl_vars['rapport']->_loop = true;
?>
            <tr>
                <td><?php echo $_smarty_tpl->tpl_vars['contrat']->value->getDate();?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['contrat']->value->getTitre();?>
</td>  
                <td><?php echo $_smarty_tpl->tpl_vars['contrat']->value->getAnimal_id();?>
</td>  
            </tr>  
            <?php } ?>
        </table>
      	<p class="entete_liste">Historique</p>
        <table class="contenu_liste">
            <tr>
                <th>Date et heure</th>
                <th>Cause</th>
                <th>Animal</th>
            </tr>
        <?php  $_smarty_tpl->tpl_vars['historique'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['historique']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['historiques']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['historique']->key => $_smarty_tpl->tpl_vars['historique']->value){
$_smarty_tpl->tpl_vars['historique']->_loop = true;
?>
            <tr>
                <td><?php echo $_smarty_tpl->tpl_vars['historique']->value->getDateHeure();?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['historique']->value->getCause_nom();?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['historique']->value->getAnimal_id();?>
</td>  
            </tr>  
        <?php } ?>
        </table>
     </div>
    <p class="actions">
        <a class="actions" href="?action=afficherModifierPersonne&id=<?php echo $_smarty_tpl->tpl_vars['personne']->value->getId();?>
"><?php echo $_smarty_tpl->getConfigVariable('MODIFIER');?>
</a></input>
        <a class="actions" href="?action=afficherRechercherPersonne"><?php echo $_smarty_tpl->getConfigVariable('RETOUR');?>
</a>
    </p>
</section>

<?php }} ?>